package com.wxb.apple.entity;  /**
 * @author wangxianbo
 * @date 2019/12/24 002416:03
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 @ClassName Moon
 **/
@TableName("moon")
public class Moon implements Serializable {
    private static final long serialVersionUID = 1L;

//   主键策略 uuid
    @TableId(value = "id",type = IdType.UUID)
    String id;

    String name;

    String apple;

    String m1;

    Integer m2;

//排除非表字段
//字段不会参加序列化
//字段数据库没有,不会添加到数据库中
    transient String  remake;
//不是数据库中的表 但是可以序列化
    @TableField(exist = false)
    String m3;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getApple() {
        return apple;
    }

    public void setApple(String apple) {
        this.apple = apple;
    }

    public String getM1() {
        return m1;
    }

    public void setM1(String m1) {
        this.m1 = m1;
    }

    public Integer getM2() {
        return m2;
    }

    public void setM2(Integer m2) {
        this.m2 = m2;
    }

}
